package com.hlhj.carview.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hlhj.carview.R
import com.hlhj.carview.bean.ItemAskListBean

/**
 *NeverMore
 *2020/9/7
 **/
class ItemAskListAdp(private val datas:ArrayList<ItemAskListBean.Data>):BaseQuickAdapter<ItemAskListBean.Data,BaseViewHolder>(R.layout.itemask_item,datas) {
    override fun convert(helper: BaseViewHolder?, item: ItemAskListBean.Data?) {
        helper?.setText(R.id.itemName,item?.name)
        helper?.setText(R.id.itemLevel,"卡车级别要求：${item?.level}")
        helper?.setText(R.id.itemFrom,item?.loc)
        helper?.setText(R.id.itemLong,"里程${item?.long}KM")
    }

}